import service from '@/utils/request'
import {ApiResponse,ListApiResponse} from '@/store/dataType.ts'
export const API_BPMN_PROCESS_DEFINITION = {
        // 查询流程定义分页
        getProcessDefinitionPage:(params):Promise<ListApiResponse> =>{
            return service.get('/workflow/process-definition/list',{params})
        },

        // 获得可管理的流程定义
        getProcessDefinitionList:(params):Promise<ApiResponse>=> {
            return service.get('/workflow/process-definition/list',{params})
        },

        // 获得简单信息定义
        getSimpleProcessDefinitionList:():Promise<ApiResponse> => {
            return service.get('/workflow/process-definition/simple-list')
        },

        // 获得单个
        getProcessDefinition:(id?: string, key?: string):Promise<ApiResponse> => {
            return service.get('/workflow/process-definition/get',{params: { id, key }})
        },



}
